package HP.p0912;

public class Student {
    private String name;
    public boolean sex;
    protected int age;
    double money;

    public Student() {
        System.out.println("无参构造");
    }

    public Student(String name, boolean sex, int age, double money) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.money = money;
        System.out.println("带参构造");
    }

    public int s1() {
        return 44;
    }

    public String Name(int a, String b) {

        return name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", money=" + money +
                '}';
    }
}
